---
const {text} = Astro.props
const segments = text.split("/").slice(0, -1)
---
<span>
    {segments.map((s:string) => (
        <span>{s}</span>
        <span class="sep">/</span>
    ))}
</span>
